// If log file not stored, store it. This will throw an exception if the profile hasn't been initialized so just exit in that case.
if (!this.logFile) {
if (!this.setLogFile()) return;
}
// If EOL character isn't stored, try to get it
if (!this.mEOL) {
// Try to get the most recent window to find the platform
let recentWindow = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow(null);
let platform = (recentWindow ? recentWindow.navigator.platform : null);